package com.alameda.mapper.info;

import com.alameda.common.annotation.UnLogicDeleteIntercept;
import com.alameda.pojo.info.JobInfoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 定时任务信息 数据控制层
 *
 * @author Lv
 * @date 2024/06/10
 */
@Mapper
public interface JobInfoMapper extends BaseMapper<JobInfoDO> {
    /**
     * 通过任务描述和调度执行器名称查询调度信息
     *
     * @param iPage           分页对象
     * @param jobDesc         任务描述
     * @param executorHandler 调度执行器名称
     * @return
     */
    @UnLogicDeleteIntercept
    IPage<JobInfoDO> findJobInfo(@Param("iPage") IPage<JobInfoDO> iPage,
                                 @Param("jobDesc") String jobDesc,
                                 @Param("executorHandler") String executorHandler);
}
